<!doctype html>
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
<script>
test(
  () => {
    requestIdleCallback(() =>
        assert_unreached('Should not trigger the idle task during the test.'));
  }, 'Untriggered idle task does not introduce memory leak.');

test(
  () => {
    const handle = requestIdleCallback(() =>
        assert_unreached('Should not trigger the idle task during the test.'));
    cancelIdleCallback(handle);
  }, 'Canceled idle task does not introduce memory leak.');
</script>
